local luoyi = fk.CreateSkill{
    name = "hs__luoyi",
}

luoyi:addEffect(fk.EventPhaseEnd,{
    anim_type = "offensive",
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(luoyi.name) and player.phase == Player.Draw
      end,
      on_use = function(self, event, target, player, data)
        local room = player.room
        room:askToDiscard(player,{
          min_num = 1,
          max_num = 1,
          include_equip = true,
          skill_name = luoyi.name,
          prompt = "hs__luoyi-ask",
        })
        room:addPlayerMark(player,"@@heg_luoyi-turn",1)
      end,
})
luoyi:addEffect(fk.DamageCaused,{
  name = "#heg__luoyi_trigger",
  mute = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:usedSkillTimes("hs__luoyi", Player.HistoryTurn) > 0 and
      not data.chain and data.card and (data.card.trueName == "slash" or data.card.name == "duel")
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:broadcastSkillInvoke("hs__luoyi")
    room:notifySkillInvoked(player, "hs__luoyi")
    data:changeDamage(1)
  end,
})
Fk:loadTranslationTable{
    ["@@heg_luoyi-turn"]="裸衣",
    ["hs__luoyi-ask"]="你可以弃置一张牌，于此回合内执行【杀】或【决斗】的效果造成伤害时伤害+1",
    ["hs__luoyi"] = "裸衣",
    [":hs__luoyi"]="摸牌阶段结束时，你可弃置一张牌，令你于此回合内执行【杀】或【决斗】的效果造成伤害时，此伤害+1。",
    ["$hs__luoyi1"] = "脱！",
    ["$hs__luoyi2"] = "谁来与我大战三百回合？",
  }
return luoyi